adding unit tests for evalAttributes