Improve test on build method