Added a test for the pass() function.