adding some tests for the sass conversion

beside i have done some minor refactoring.