Added tests for history
More history tests
Added tests for undo feature
Finished testing undo
More profile tests
Added more tests for 'main'