Fix stud version requirement and test spec, and add new tests for current issues

Fix stud version requirement and test spec, and add new tests for current issues #149, #144 and #167