TDD tests for constants optimization