Added tests for the profile. Helps more with bug #15.