added constant() test cases