added profile controller code and test case