refactored tests and added magna carta test.