tests for Factor class