Fixed tests, only build in dev