Implemeted unit test