add tests and remove build error

2 jobs for merge_issue_21 in 3 minutes and 30 seconds (queued for 2 seconds)