Added tests for functions 4-11