Added unit tests for testing methods.