added test files, fixed unit tests

1 job for master in 4 minutes and 46 seconds (queued for 5 seconds)