Fixed bugs with tabs. Added more tests for functionally files