Fixed problems with test code and successfully compiled