Add tests and build files