add unit tests for spatial navigator