refactored tests to cater for fibonacci encoder returning a set