fix 'test' and 'build' tasks