Added tests to check computed variables

Tests are in constants_test.cpp