added more tests, added method to create class dynamically without declaring it first