added tests and calc score method for Record