some minor fixes and added one initial test
some minor fixes and added one initial test