add tests for buildmod