moved test cases into pkg