basic unit tests for ArrayBasedModel