Added test for constants. Fixes #37