Loan fragment tests

My first attempt at writing tests. I'm not sure whether or not these tests will actually run because I am getting VerifyErrors when creating the testing suite. However,  it builds fine on my machine.