unittest for getting schema as array