refactored and fixed tax rate spec