Fixes error in isPrivateAllowed: Now tests for methods that are outside of functionSpec