fixed entity framework persistance problem and added integration test assembly