tests: add test running automatically on building