added get() method and relevant tests