alter error messages and checks on rangeid and factorrange slightly
Small tests for new way of initializing some models