added unit test functions and fixtures in minitest framework