passing all aplus tests
removed typeof function check in resolver