added test on instances
added tests on arrays