added test functions and a function in view for test6a