Added unit tests for basic core and function profile.