adding tests for observeArray