add basic unit tests for build handler