adding test for const functions