adding test for internal methods