Added test for main funtionals parts
Added some methods to commandgular to run test easily