wrote test for getters